package org.example.groupwarehouse.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.groupwarehouse.entity.Category;

import java.util.List;

@Mapper
public interface CategoryMapper {

    List<Category> selectAll();
    Category findById(Integer id);
    Category getCategoryByName(String name);
    int insertCategory(Category category);
    int updateCategory(Category category);
    int updateCategoryStatus(Integer id, Integer status);

}
